package demo07;

import java.security.Security;

/**
 * 小偷
 *
 * @author hy
 * @date 2025-03-05
 **/
public class Thief {
    public static final int HARD = 8;
    public static final int MIDDLE = 4;
    public static final int EASY = 2;
    public void steal(Door door) {
        System.out.println("小偷尝试开门");
        int r = door.open();
        if (r >= EASY){
            System.out.println("成功开门，盗窃成功");
            return;
        }
        System.out.println("盗窃失败");
    }
}
